package com.itheima.service;

import com.itheima.dao.loginMapper;
import com.itheima.pojo.User;
import com.itheima.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;

/**
 * @author MaQing
 * @create 2022-05-10 08:28
 */
public class loginService {
    public User login(User u) {
        SqlSession sqlSession = MybatisUtils.getSqlSession();
        loginMapper mapper = sqlSession.getMapper(loginMapper.class);
        User user =mapper.login(u);
        return user;
    }
}
